* May 23, 2021
* JJPS

 ***replication of Choi's analysis***
 
 gen domestic = exp(log_domestic)
 replace domestic = domestic-1
 gen Nb_attack_NON_Islamist_dom = domestic- Nb_attack_Islamist_dom
 replace Nb_attack_NON_Islamist_dom =0 if Nb_attack_NON_Islamist_dom <0
 replace Nb_attack_NON_Islamist_dom = Nb_attack_NON_Islamist_dom +1
 gen Log_Nb_attack_NON_Islamist_dom = ln( Nb_attack_NON_Islamist_dom) 
pwcorr Nb_attack_NON_Islamist_dom Log_Nb_attack_Islamist_dom if interstate==0 & internal==0, sig
 
tab Nb_attack_Islamist_dom if interstate==0 & internal==0
tab Nb_attack_NON_Islamist_dom if interstate==0 & internal==0

gen Dummy_non_islamist = .
replace Dummy_non_islamist = 0 if Nb_attack_NON_Islamist_dom==1
replace Dummy_non_islamist = 1 if Nb_attack_NON_Islamist_dom>1
replace Dummy_non_islamist = . if Nb_attack_NON_Islamist_dom==.

gen Dummy_islamist = .
replace Dummy_islamist = 0 if Nb_attack_Islamist_dom==0
replace Dummy_islamist = 1 if Nb_attack_Islamist_dom>1
replace Dummy_islamist = . if Nb_attack_Islamist_dom==.

**Table 1***
asdoc xtreg lead_muspct log_domestic fertility449 log_university log_growth497 polity2 log_domestic9 internal interstate i.year, fe robust replace nest
asdoc xtreg lead_muspct log_domestic fertility449 log_university log_growth497 polity2 log_domestic9 internal interstate i.year if year>1990, fe robust append nest
asdoc xtreg lead_muspct Log_Nb_attack_Islamist_dom fertility449 log_university log_growth497 polity2 log_domestic9 internal interstate i.year if year>1990, fe robust append nest
asdoc xtreg lead_muspct Log_Nb_attack_NON_Islamist_dom fertility449 log_university log_growth497 polity2 log_domestic9 internal interstate i.year if year>1990, fe robust append nest
asdoc tobit lead_muspct Log_Nb_attack_Islamist_dom fertility449 log_university log_growth497 polity2 log_domestic9 internal interstate cnty* yr* if year>1990, ll(0) ul(100) append nest
asdoc tobit lead_muspct Log_Nb_attack_NON_Islamist_dom fertility449 log_university log_growth497 polity2 log_domestic9 internal interstate cnty* yr* if year>1990, ll(0) ul(100) append nest 

***Table 2***
asdoc xtreg lead_muspct c.Log_Nb_attack_Islamist_dom##Dummy_non_islamist1 fertility449 log_university log_growth497 polity2 log_domestic9 internal interstate i.year if year>1990, fe robust replace nest
asdoc xtreg lead_muspct c.Log_Nb_attack_NON_Islamist_dom##Dummy_islamist fertility449 log_university log_growth497 polity2 log_domestic9 internal interstate i.year if year>1990, fe robust append nest
asdoc tobit lead_muspct c.Log_Nb_attack_Islamist_dom##Dummy_non_islamist1 fertility449 log_university log_growth497 polity2 log_domestic9 internal interstate cnty* yr* if year>1990, ll(0) ul(100) append nest
asdoc tobit lead_muspct c.Log_Nb_attack_NON_Islamist_dom##Dummy_islamist1 fertility449 log_university log_growth497 polity2 log_domestic9 internal interstate cnty* yr* if year>1990, ll(0) ul(100) append nest 


***Appendix***
asdoc xtreg lead_muspct log_international fertility449 log_university log_growth497 polity2 log_domestic9 internal interstate i.year if year>1990, fe robust replace nest
asdoc xtreg lead_muspct log_groups fertility449 log_university log_growth497 polity2 log_domestic9 internal interstate i.year if year>1990, fe robust append nest
asdoc tobit lead_muspct log_international fertility449 log_university log_growth497 polity2 log_domestic9 internal interstate i.ccode i.year if year>1990, ll(0) ul(100) append nest
asdoc tobit lead_muspct log_groups fertility449 log_university log_growth497 polity2 log_domestic9 internal interstate i.ccode i.year if year>1990, ll(0) ul(100) append nest

